package xmap

// Contains 判断map中是否存在某个key
func Contains(mapVal map[string]any, key string) bool {
	_, have := mapVal[key]
	return have
}

// Length 获取map的长度
func Length(mapVal map[string]any) int {
	return len(mapVal)
}
